﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace System {
    /// <summary>
    /// 第三方APP信息包
    /// </summary>
    [Serializable]
    public class SessionBag:WxOpenBaseEntities {
        /// <summary>
        /// Session的Key（3rd_session / sessionId）
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// OpenId
        /// </summary>
        [JsonProperty(PropertyName = "openid")]
        public string OpenId { get; set; }
        /// <summary>
        /// UnionId
        /// </summary>
        [JsonProperty(PropertyName = "unionid")]
        public string UnionId { get; set; }
        /// <summary>
        /// SessionKey
        /// </summary>
        [JsonProperty(PropertyName = "session_key")]
        public string SessionKey { get; set; }
        /// <summary>
        /// ComponentBag
        /// </summary>
        public SessionBag() {
            Key=Guid.NewGuid().ToString();
        }
    }
}
